import {createStore,applyMiddleware} from "redux"
import bigReducer from "./reducers"
import sagaMiddeleWareCreator from "redux-saga"
import saga from "./saga"
import {composeWithDevTools} from "redux-devtools-extension"
const sagaMiddeleWare = sagaMiddeleWareCreator()
// 创建store仓库
const store = createStore(bigReducer,composeWithDevTools(applyMiddleware(sagaMiddeleWare)))
sagaMiddeleWare.run(saga)

export default store